<?php
namespace Home\Service;
use Think\Model;
class YgclTermService extends Model {
	
	private $m;	
	function __construct(){
		$this->m = D('YgclTerm');
	}
	
	//判断当前时间是否在学期以内
	public function checkTerm(){
		$term = F('Termdata');
		if($term){
			$starttime = strtotime($term['start_time']);
			$endtime = strtotime($term['end_time']);
			if($starttime <= time() && $endtime >= time()){
				return $term;
			}else{
				return false;
			}
		}else{
			return false;
		}
	}
   
}